Skip to content

Add subsection "Default Parameters for Overloaded Methods" #2646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Nov 21, 2022

Conversation

KarahanS
Copy link
Contributor

Add a subsection to Default Parameter Values as to why we can't use default parameters for more than one overloaded method. Sources:

@KarahanS
Copy link
Contributor Author

Provided an example of overloaded functions with default parameters. It failed the mdoc check since having overloaded functions with default parameters for both of them is not allowed in Scala (that was the whole point though) - So I converted my example from scala mdoc to simply scala.

Co-authored-by: Jamie Thompson <bishbashboshjt@gmail.com>
KarahanS and others added 4 commits November 21, 2022 12:55
Co-authored-by: Jamie Thompson <bishbashboshjt@gmail.com>
Co-authored-by: Jamie Thompson <bishbashboshjt@gmail.com>
Co-authored-by: Jamie Thompson <bishbashboshjt@gmail.com>
Copy link
Member

@bishabosha bishabosha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@bishabosha bishabosha merged commit 9acb354 into scala:main Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants